#include <iostream>
#include <memory.h>
#include <assert.h>

using namespace std;

class A
{
};

class A2
{
};

class B:public A
{
};

class C : public virtual B
{
};

class D: public A, public A2
{
};

int main()
{
	cout<<sizeof(A)<<endl;
	cout<<sizeof(B)<<endl;
	cout<<sizeof(C)<<endl;
	cout<<sizeof(D)<<endl;
	return 0;
}

